package com.wangjie.extendsdemo;

public class Animal {
    private String name;
    private int age;

    int num = 100;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat(String food){
        System.out.println(name + "eat" + food);
    }
    public void introduction(){
        System.out.println("Hello everyone! I'm" + name+",I'm"+age+" old.");
    }
}
